package com.googlecode.bipol.war.services;

import java.io.Serializable;
import com.googlecode.bip.entity.IGenericUser;
import com.googlecode.bip.entity.IUser;

/**
 * TODO: Doc
 *
 */
public interface UserManager extends Serializable {

    /**
    * Return the registered user, null otherwise
    *
    * @return The user entity
    */
    public IGenericUser getGenericUser();

    /**
    * Create a new BIP_USER account
    *
    * @param username The name of the new user
    * @param password The user password
    * @return The user entity
    */
    public IUser createUser(String username, String password) throws ServiceException;
}
